package service;

import java.util.HashMap;
import java.util.Map;

import vo.MessageVO;

public class PanduanServiceImpl implements PanduanService {

	@Override
	public Map<String, MessageVO> getVO(String user) {
		Map<String, MessageVO> map = new HashMap<String, MessageVO>();		
		boolean isUser = isUser(user);
		MessageVO vo = new MessageVO();
		String url;
		String a;
		String b;
		String message;
		if(isUser)
		{
			a = "aaaaa1";
			b = "aaaaa2";
			message = "成功";
			url = "/view/MyJsp.jsp";
		}
		else
		{
			a = "bbbbb1";
			b = "bbbbb2";
			message = "失败";
			url = "/view/shib.jsp";
		}
		vo.setA(a);
		vo.setB(b);
		vo.setMessage(message);
		map.put(url, vo);
		
		return map;
	}

	private boolean isUser(String user) {
		// TODO Auto-generated method stub
		return false;
	}

}
